<#macro navBar active="1">
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
    <#if admin?? && admin == true>
        <a class="navbar-brand" href="#">租户平台</a>
    <#else >
        <a href="#" class="navbar-brand">${domain!'子站点'}</a>
    </#if>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExampleDefault" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarsExampleDefault">
        <ul class="navbar-nav mr-auto">
            <#if admin?? && admin == true>
                <li class="nav-item <#if active == "1">active</#if>">
                    <a class="nav-link" href="${rootPath}/tenant/list">租户 </a>
                </li>
            </#if>
            <li class="nav-item <#if active == "2">active</#if>">
                <a class="nav-link" href="${rootPath}/news/list">新闻 </a>
            </li>
        </ul>
    </div>
</nav>
</#macro>